package com.haoyun.mirage.user.model.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.haoyun.common.core.jackson.serializer.LongJsonDeserializer;
import com.haoyun.common.core.jackson.serializer.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by twg on 2018/6/20.
 */
@Data
public class RoleDTO implements Serializable {

    private static final long serialVersionUID = -590530058972249641L;

    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long id;
    private Date gmtCreate;
    private String roleName;
    private String roleCode;
    private String roleDesc;
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long deptId;
    private String deptName;
    private Long compId;
}
